package com.lagou.webwork.model;

import java.util.Date;

/**
 * @author sjp
 * @date 2021/5/26 18:41
 * @description
 */
public class Student {
    private int id;
    private String sid;
    private String name;
    private String sex;
    private Date birthDate;
    private String email;
    private String remark;

    private int classId;
    private String className;


    public Student() {
    }

    public Student(int id, String sid, String name, String sex, Date birthDate, String email, String remark, int classId) {
        this.id = id;
        this.sid = sid;
        this.name = name;
        this.sex = sex;
        this.birthDate = birthDate;
        this.email = email;
        this.remark = remark;
        this.classId = classId;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }


//    @Override
//    public String toString() {
//        return "{" +
//                "\"id\":\"" + id +
//                "\", \"sid\":\"" + sid +
//                "\", \"name\":\"" + name +
//                "\", \"sex\":\"" + sex +
//                "\", \"birthDate\":\"" + birthDate +
//                "\", \"email\":\"" + email +
//                "\", \"remark\":\"" + remark +
//                "\"}";
//    }

    @Override
    public String toString() {
        return "{" +
                "\"id\":\"" + id +
                "\", \"sid\":\"" + sid +
                "\", \"name\":\"" + name +
                "\", \"sex\":\"" + sex +
                "\", \"birthDate\":\"" + birthDate +
                "\", \"email\":\"" + email +
                "\", \"remark\":\"" + remark +
                "\", \"classId\":\"" + classId +
                "\", \"className\":\"" + className +
                "\"}";
    }

}
